package kr.co.doriclassic.pro10;

import java.util.Scanner;

class Chart{
	private int num;
	private String[] cnt=new String[10];	
	public Chart() {
		num=0;
		for(int i=0;i<cnt.length;i++){
			cnt[i]="";
		}
	}
	public void getChart() {
		for (int i = 0; i < cnt.length; i++) {
			System.out.printf("%d - %d : %s%n", i*10+1,(i+1)*101,cnt[i]);
		}
	}
	public void setNumber() {
		Scanner sc = new Scanner(System.in);
		System.out.println("==1에서 100사이의 정수를 입력하시오==");
		for(int i=0;i<cnt.length;i++){
			System.out.print((i+1)+")");
			num=sc.nextInt();			
				cnt[num/10]+="*";//간단하게 쓸 수 있다.
		}
		getChart();
	}	
}
public class ChartTest {
	public static void main(String[] args) {
		Chart c = new Chart();
		c.setNumber();
	}
}
